#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

QString MainWindow::currentString()
{
    return ui->lineEdit->text();
}


void MainWindow::on_pushButton_clicked()
{
    emit requestAddWidget(1);
}


void MainWindow::on_pushButton_3_clicked()
{
    emit requestAddWidget(2);
}


void MainWindow::on_pushButton_2_clicked()
{
    emit requestRemoveWidget(1);
}


void MainWindow::on_pushButton_4_clicked()
{
    emit requestRemoveWidget(2);
}


void MainWindow::on_pushButton_5_clicked()
{
    emit requestClearAll();
}

